package org.itboys.mdl.entity.mongo.information;

import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

import java.util.Date;
import java.util.List;

/**
 * Created on 2017/12/1.
 * @author 朱坤涛
 * DES：资讯信息
 */
@Entity(value = "MdlPortalInfo", noClassnameStored = true)
public class MdlPortalInfo extends BaseMongoEntity{

    private String title; // 标题
    private String summary; // 摘要
    private Integer type; // 资讯类别 1-正常图文 2-多图 3-大图
    private String context;// 内容
    private Integer status = 0; // 状态 ：1-首页显示
    private Long itemId; // 栏目Id
    private String bigImage; //大图
    private String zhuImage; //主图
    private Integer isDeleted = 0;
    private Integer isTop = 0;
    private Date createTime;// 新建时间

    private List<MdlPortalImage> images;
    private String time;
    private Integer count = 0;//评论数

    public String getTitle() {return title;}

    public void setTitle(String title) {this.title = title;}

    public String getSummary() {return summary;}

    public void setSummary(String summary) {this.summary = summary;}

    public Integer getType() {return type;}

    public void setType(Integer type) {this.type = type;}

    public String getContext() {return context;}

    public void setContext(String context) {this.context = context;}

    public Integer getStatus() {return status;}

    public void setStatus(Integer status) {this.status = status;}

    public void setItemId(Long itemId) {this.itemId = itemId;}

    public Long getItemId() {return itemId;}

    public String getBigImage() {return bigImage;}

    public void setBigImage(String bigImage) {this.bigImage = bigImage;}

    public String getZhuImage() {return zhuImage;}

    public void setZhuImage(String zhuImage) {this.zhuImage = zhuImage;}

    @Override
    public Integer getIsDeleted() {return isDeleted;}

    public void setIsDeleted(Integer isDeleted) {this.isDeleted = isDeleted;}

    public Integer getIsTop() {return isTop;}

    public void setIsTop(Integer isTop) {this.isTop = isTop;}

    public List<MdlPortalImage> getImages() {return images;}

    public void setImages(List<MdlPortalImage> images) {this.images = images;}

    public String getTime() {return time;}

    public void setTime(String time) {this.time = time;}

    public Integer getCount() {return count;}

    public void setCount(Integer count) {this.count = count;}

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
